//
//  MTMapCollectionViewCell.m
//  met
//
//  Created by 李晓俊 on 2019/6/24.
//  Copyright © 2019 李晓俊. All rights reserved.
//

#import "MTMapCollectionViewCell.h"

@implementation MTMapCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self = [[NSBundle mainBundle]loadNibNamed:@"MTMapCollectionViewCell" owner:self options:nil].lastObject;
    }
    return self;
}
- (void)setModel:(MapModel *)model {
    _model = model;
    self.name.text = [NSString stringWithFormat:@"%@",model.mapTitle];
    [self.headImage sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",model.mapImage]] placeholderImage:[UIImage imageNamed:@"图层 17"]];
    self.headImage.contentMode = 2;
}
@end
